package com.itheima.io.bufferedwriter.demo02;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class BufferedWriterDemo02 {

    public static void main(String[] args) throws IOException {

        BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter("itheima-io-bufferedwriter\\b.txt"));

        for (int i = 0; i < 10; i++) {
            bufferedWriter.write("蓝忘机---" + i);
            bufferedWriter.newLine();
        }

        bufferedWriter.close();

    }
}
